package com.zyl.pagergallerymoredemo_java.pojo;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.ArrayList;

public class Pixabay implements Serializable {
    private int total;
    private int totalHits;
    private ArrayList<PhotoItem> hits;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getTotalHits() {
        return totalHits;
    }

    public void setTotalHits(int totalHits) {
        this.totalHits = totalHits;
    }

    public ArrayList<PhotoItem> getHits() {
        return hits;
    }

    public void setHits(ArrayList<PhotoItem> hits) {
        this.hits = hits;
    }

    public class PhotoItem implements Serializable {
        @SerializedName("id")
        private int photoId;

        @SerializedName("webformatURL")
        private String previewUrl;

        @SerializedName("largeImageURL")
        private String fullUrl;

        @SerializedName("webformatHeight")
        private int photoHeight;

        @SerializedName("user")
        private String photoUser;

        @SerializedName("likes")
        private int likes;

        @SerializedName("favorites")
        private int favorites;

        public int getPhotoId() {
            return photoId;
        }

        public void setPhotoId(int photoId) {
            this.photoId = photoId;
        }

        public String getPreviewUrl() {
            return previewUrl;
        }

        public void setPreviewUrl(String previewUrl) {
            this.previewUrl = previewUrl;
        }

        public String getFullUrl() {
            return fullUrl;
        }

        public void setFullUrl(String fullUrl) {
            this.fullUrl = fullUrl;
        }

        public int getPhotoHeight() {
            return photoHeight;
        }

        public void setPhotoHeight(int photoHeight) {
            this.photoHeight = photoHeight;
        }

        public String getPhotoUser() {
            return photoUser;
        }

        public void setPhotoUser(String photoUser) {
            this.photoUser = photoUser;
        }

        public int getLikes() {
            return likes;
        }

        public void setLikes(int likes) {
            this.likes = likes;
        }

        public int getFavorites() {
            return favorites;
        }

        public void setFavorites(int favorites) {
            this.favorites = favorites;
        }
    }
}

